/**
 * ServerConnectionException.java
 *
 * @author Andrew Moss
 * 
 * Created on 1 Oct 2010
 */
package com.mossdev.android.moteapp.comms;

/**
 * An Exception indicating a problem with a ServerConnection Object
 * 
 * @author Andrew Moss
 *
 */
public class ServerConnectionException extends Exception {

	private static final long serialVersionUID = -5774994660508204413L;
	
	//---------------------------------------------------
	
	public String err_msg;
	public Exception cause;

	ServerConnectionException(String err, Exception e) {
	    super(err);     // call super class constructor
	    this.err_msg = err;  // save message
	    if (e == null)
	    	e = new Exception();
	    this.cause = e;
	}
	  
}
